package com.supply.supplymanage.controller;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.supply.supplymanage.biz.TempStorageBiz;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("tempsto")
public class TempStorageController {

    @Resource
    private TempStorageBiz tempStorageBiz;
    //查询开发完成未入库的开发单号的信息
    @RequestMapping("/seleeor")

    public @ResponseBody PageInfo seleeor(@RequestParam("PageNum") int PageNum,
                                          @RequestParam("danhao")String danhao,
                                          @RequestParam("kehu") String kehu){
        PageInfo seleeor = tempStorageBiz.seleeor(PageNum, danhao, kehu);
        return seleeor;
    }
    //根据id查询样板开发的细码信息
    @RequestMapping("selech/{eoinfoid}")
    public @ResponseBody List<Map> selech(@PathVariable("eoinfoid") int eoinfoid ){
        List<Map> maps = tempStorageBiz.seleFY(eoinfoid);
        System.out.println(maps);
        return maps;
    }
}
